import {requested} from './axiosed';
//获取上传凭证
export async function getUploadToken(path) {
    var url = '/api/imageUpload/getUploadToken?path='+path;
    let res = await requested(url);
    return res.data;
}
//上传图片
export async function upload(data) {
    var url = '/api/imageUpload/upload';
    let config = {
        headers: {
            'Content-Type': 'multipart/form-data',
        }
    };
    let res = await requested(url,'post',data,config);
    return res.data;
}
